<script setup>

//导入的是自定义路由
import router from "../router/index.js";

const login = ()=>{
  //通过/home在路由的核心js文件中去找对应的组件
  router.push('/home/index')
}
</script>

<template>
        <h3>登录页面</h3>
        <form action="">
          <div>账户：<input type="text"></div>
          <div>密码：<input type="password">  </div>
          <button @click="login">登录</button>
        </form>
        <div><RouterLink to="/register">去注册...</RouterLink></div>
</template>

<style scoped>

</style>